package myClient.command;

import org.springframework.stereotype.Service;

import java.util.Scanner;

/**
 * 退出命令的信息收集类
 */

@Service("LogoutConsoleCommand")
public class LogoutConsoleCommand implements BaseCommand {

    public static final String KEY = "3";

    @Override
    public String getKey() {
        return KEY;
    }

    @Override
    public String getTip() {
        return "退出";
    }

    @Override
    public void exec(Scanner scanner) {
        System.out.println("退出命令执行成功");
    }

}
